﻿using System;
using System.Data;
using eTMS.Controllers.SoCoSinhVienService;
using System.Collections.Generic;
using System.Text;
namespace eTMS.Controllers{
public class SoCoSinhVienController : SoCoSinhVienControllerBase{
	public SoCoSinhVienController()
		: base()
	{
	}
    public void LoadDataSetSoCo(List<int>lsSoCo_ID,DataTable tblSoCo,DataTable tblSoCoChiTiet)
    {
        DataSet ds = dao.SelectAllDSWithSinhVienByListSoCoSinhVien_ID(lsSoCo_ID.ToArray());
        foreach (DataRow r in ds.Tables[0].Rows)
        {
            tblSoCo.ImportRow(r);
        }
        SoCoSinhVienChiTietService.SoCoSinhVienChiTietServiceClient wChiTiet=new eTMS.Controllers.SoCoSinhVienChiTietService.SoCoSinhVienChiTietServiceClient();
        ds = wChiTiet.SelectAllDSWithKhoanTienByListSoCoSinhVien_ID(lsSoCo_ID.ToArray());
        foreach (DataRow r in ds.Tables[0].Rows)
        {
            tblSoCoChiTiet.ImportRow(r);
        }
        
    }
}
}
